package com.xxxx.dao.impl;

import com.xxxx.dao.BookDao;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * Created By ShaoXikai on 2022/7/20
 */
public class BookDaoImpl implements BookDao {

    public BookDaoImpl() {
        System.out.println("book构造");
    }

    @Override
    public void d1() {
        System.out.println("dao 实现");
    }

    @PostConstruct
    public void init() {
        System.out.println("init ex!");
    }

    @PreDestroy
    public void destroy() {
        System.out.println("destroy ex！");
    }
}
